
<div id="medication-list">
<?php
      $query = "SELECT * FROM medications WHERE inList IS TRUE";
      $result = mysql_query($query) or die('Query failed: ' . mysql_error());
  
      $numresults = mysql_num_rows($result);

echo "<u>My Medication List</u>\r\n";

   if ($numresults == 0){
     echo "<UL><LI>No Medications Selected</LI></UL>\n";
   } else{
     echo "<ol>\n"; 
     while ($row = mysql_fetch_array($result)){
       echo "<LI> ".$row['MedicationIdentity']." (".$row['UnitStrength'].") <BR><I>(".$row['GenericIngredients'].")</i></LI>\r\n";
     } // while $row
     echo "</ol>\n";
   } // else numresults > 0
	
?>

</Div>
